package com.shycloud.mido.organ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shycloud.mido.organ.api.entity.LessonTypeDicEntity;
import com.shycloud.mido.organ.api.entity.TeacherCourseEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 教师授课科目Mapper
 *  @author yyy
 *  @since 2019-09-25
 */
public interface TeacherCourseMapper extends BaseMapper<TeacherCourseEntity> {
	/**
	 * 新增教师授课科目
	 * @param entity
	 */
	void insertCourse( TeacherCourseEntity entity);

	/**
	 * 根据教师ID 查询教师科目列表
	 * @param teacherId 教师ID
	 * @return
	 */
	List<LessonTypeDicEntity> lessonByTeacher(@Param("teacherId") String teacherId);

	/**
	 * @author: Cxc
	 * @Date: 2019/10/17 17:46
	 * @Description: 当前机构下通过科目的id查询老师名称
	 */
	List<TeacherCourseEntity> selectTeacherByCourseId(TeacherCourseEntity teacherCourseEntity);

	/**
	 * 教师认证科目
	 * @param teacherId 教师ID
	 * @return
	 */
	List<LessonTypeDicEntity> lessonsByTeacher (@Param("teacherId") String teacherId);
}
